<style type="text/css">
  .bc {
  line-height: 40px;
  }

  .info {
    position: relative;
    float: right;
    right: 2%;
  }
</style>

<ion-header-bar align-title="center" class="bar bar-header bar-light" style='background: url(img/icon/headerline.png); background-size: contain; background-position: bottom; background-repeat: no-repeat;'>
  <a class="button icon-left ion-ios-arrow-left button-clear button-light" ng-click="backGo()"></a>
  <h1 class="title">我</h1>
</ion-header-bar>

<ion-content class="bg">
  <ion-refresher pulling-text="<span class='pulling-text-auto'>{{pulltextchange}}</span>"
                 on-refresh="doRefresh()"
                 on-pulling="pulltext()"
                 spinner="ripple"
                 pulling-icon="ion-ios-refresh-empty">
  </ion-refresher>

  <ion-list>
    <ion-item class="bc">
      <div>
        用户名:<div class="info">{{user.name}}</div>
        <!--<a class="button icon-right ion-ios-arrow-right button-clear button-light" style="position:absolute;top:20%;right:2%;"></a>-->
      </div>
    </ion-item>

    <ion-item class="bc">
      <div>性别:
        <div class="info"><span ed-options="gender">{{user.gender}}</span></div>
      </div>
    </ion-item>

    <ion-item class="bc">
      <div>电话:
        <div class="info">{{user.telephone}}</div>
      </div>
    </ion-item>

    <ion-item class="bc">
      <div>部门:
        <div class="info">{{user.deptName}}</div>
      </div>
    </ion-item>

    <!--<ion-item class="bc">-->
      <!--<div>岗位:-->
        <!--<div class="info">副局长</div>-->
      <!--</div>-->
    <!--</ion-item>-->

    <ion-item class="bc" href="#/message">
      <div>消息通知
        <a  href="#/message" class="button icon-right ion-ios-arrow-right button-clear button-light" style="position:absolute;top:20%;right:2%;"></a>
      </div>
    </ion-item>

    <ion-item class="bc">
      <div ng-click="update()">版本:
        <div class="info" >当前:{{version.local}} - 最新:{{version.server}}</div>
      </div>
    </ion-item>

  </ion-list>

  <button class="button button-assertive  button-block" ng-click="logout()" style="border:1px solid #fff" >退出登录</button>

</ion-content>
